package xyz.xpman.prisonerfitness.util;

import android.util.Log;

import org.jetbrains.annotations.NotNull;
import org.json.JSONArray;
import org.json.JSONException;

public class JsonUtil {

    private JsonUtil() { }

    public static String[] toStringArray(@NotNull JSONArray guideImgArray) {
        String[] guideImg = new String[guideImgArray.length()];

        try {
            for (int i = 0; i < guideImgArray.length(); i++) {
                guideImg[i] = String.valueOf(guideImgArray.get(i));
            }
        } catch (JSONException e) {
            Log.i("[json]", String.valueOf(e));
        }
        return guideImg;
    }
}
